# -*- encoding: utf-8 -*-
"""

Copyright (c) 2019 - present AppSeed.us
"""


from django.urls import path, re_path

from apps.home import views


urlpatterns = [
    # The home page
    path("", views.user_info, name="home"),
    path("user_info", views.user_info, name="user_info"),
    path("history", views.history_task, name="history"),
    path("new_task", views.model_form_create_task, name="new_task"),
    path("task/<int:task_id>", views.task_detail, name="task_detail"),
    path("display/<int:task_id>", views.display, name="display"),
    path("download_train/<int:task_id>", views.download_train, name="download_train"),
    path("download_test/<int:task_id>", views.download_test, name="download_test"),
    path(
        "download_result/<int:task_id>", views.download_result, name="download_result"
    ),
    # Matches any html file
    re_path(r"^.*\.*", views.pages, name="pages"),
]
